export default function(delay = 1000) {
   return () => new Promise((resolve) => {
      setTimeout(() => resolve(), delay);
   });
}
